package id.amikom.jogjabankfinder.activity;

import id.amikom.jogjabankfinder.R;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;

public class Splash extends Activity
{

	private final long	time	= 3000; // milisecond

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);

		Thread timer = new Thread()
		{
			@Override
			public void run()
			{
				// TODO Auto-generated method stub
				try
				{
					sleep(time);

				} catch (Exception e)
				{
					// TODO: handle exception
				} finally
				{
					startActivity(new Intent(Splash.this, MenuUtama.class));
					finish();
				}

			}
		};

		timer.start();
	}

}
